{% set height =  height | default(400) %}
{% set close_btn_id = 'close_btn' ~ pop_id %}
{% set windows_id = 'windows' ~ pop_id %}
<div class="layui-layer-shade popup_shade" style="display: none;" id="{{ pop_id }}"></div>
<div class="layui-layer layui-layer-dialog popup_window" style="width: {{ width | default(400) }}px;height: {{ height }}px;display: none;" id="{{ windows_id }}">
    <div class="layui-layer-title" style="cursor: move;">{{ title | default('信息')}}</div>
    <div class="layui-layer-content">
        {% if div_content | default('') == '' %}
            <form id="{{ form_id }}">
                <div class="form-content" style="height: {{ height - 40 }}px;overflow-y: auto">
                    {{ content | raw }}
                </div>
                <div class="form-actions" style="margin-top: -93px">
                    {{ bottom_content | raw }}
                </div>
            </form>
        {% else %}
            {{ div_content | raw }}
        {% endif %}
    </div>
    <span class="layui-layer-setwin"><a class="layui-layer-ico  layui-layer-close1" id="{{ close_btn_id }}"></a></span>
</div>
<script>
    $('#{{ close_btn_id }}').click(function () {
        $('#{{ pop_id }}').css('display', 'none');
        $('#{{ windows_id }}').css('display', 'none');
    })
</script>